package com.lipaluma.field.mapper.mapping;

import java.lang.reflect.Field;

public class Path implements FieldMappingInfo {
	private String path;
	private boolean presenceMandatory;
	
	public Path(String path) {
		this.path = path;
		this.presenceMandatory = false;
	}

	public Path(String path, boolean appear) {
		this.path = path;
		this.presenceMandatory = appear;
	}

	public String getPath() {
		return path;
	}
	
	
	public boolean isPresenceMandatory() {
		return presenceMandatory;
	}
	
	@Override
	public String toString() {
		return "path [path="+path+"]";
	}
	
	@Override
	public void onField(Field field) {}

	@Override
	public void withFieldAndPosition(Field field, int position) {}
}
